package com.kdtech.entity.crawler;

public class UrlMeta {
	private byte[] htmlBytes ; // 抓取到的html内容
	private Long updateTime = 0l; // 网页更新时间
	private Long downloadTime; // 抓取时间
	private Double weight = 1.0D; // 权重
	private Long respondTimes = 0l; // 响应时间
	private Long inLink = 0l; // 指向该网页的连接次数
	private String encoding;// 网页编码
	private String domain;// 域名
	private Long deadTime = 0l;// 网页更新的间隔时间
    private Boolean IsAnalyImg=false;
	private Integer statusCode;
	private String contentType;
	private String src_url; //详细页所在的列表，用于判断综合门户的地区属性
	private Long lastModifiedDate;
	private String context; //url被提取页面中超链接的上下文
	
	private String url;
	private String html;

	
	public String getContext() {
		return context;
	}



	public void setContext(String context) {
		this.context = context;
	}



	public String getSrc_url() {
		return src_url;
	}



	public void setSrc_url(String src_url) {
		this.src_url = src_url;
	}



	@Override
	public String toString() {
		String html = getHtml();
		if (html != null && html.length() > 0) {
			html = html.replace("\r", "");
			html = html.replace("\n", "");
			html = html.replace("\t", "");
			html = html.replace("\r\n", "");
		}
		String strSave = "";
		strSave += "url:" + this.getUrl() + "\r\n";
		strSave += "encoding:" + encoding + "\r\n";
		strSave += "respondTimes:" + respondTimes + "\r\n";
		strSave += "domain:" + domain + "\r\n";
		strSave += "deadTime:" + deadTime + "\r\n";
		strSave += "updateTime:" + updateTime + "\r\n";
		strSave += "weight:" + weight + "\r\n";
		strSave += "inLink:" + inLink + "\r\n";
		strSave += "IsAnalyImg:" + IsAnalyImg + "\r\n";
		strSave += "html:" + html + "\r\n";
		return strSave;
	}



	public byte[] getHtmlBytes() {
		return htmlBytes;
	}



	public void setHtmlBytes(byte[] htmlBytes) {
		this.htmlBytes = htmlBytes;
	}



	

	public Long getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}


	public Long getDownloadTime() {
		return downloadTime;
	}


	public void setDownloadTime(Long downloadTime) {
		this.downloadTime = downloadTime;
	}


	public Double getWeight() {
		return weight;
	}


	public void setWeight(Double weight) {
		this.weight = weight;
	}


	public Long getRespondTimes() {
		return respondTimes;
	}


	public void setRespondTimes(Long respondTimes) {
		this.respondTimes = respondTimes;
	}


	public Long getInLink() {
		return inLink;
	}


	public void setInLink(Long inLink) {
		this.inLink = inLink;
	}


	public String getEncoding() {
		return encoding;
	}


	public void setEncoding(String encoding) {
		this.encoding = encoding;
	}


	public String getDomain() {
		return domain;
	}


	public void setDomain(String domain) {
		this.domain = domain;
	}


	public Long getDeadTime() {
		return deadTime;
	}


	public void setDeadTime(Long deadTime) {
		this.deadTime = deadTime;
	}


	public Boolean getIsAnalyImg() {
		return IsAnalyImg;
	}


	public void setIsAnalyImg(Boolean isAnalyImg) {
		IsAnalyImg = isAnalyImg;
	}


	public Integer getStatusCode() {
		return statusCode ;
	}


	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}


	public String getContentType() {
		return contentType;
	}


	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public Long getLastModifiedDate() {
		return lastModifiedDate;
	}

	public void setLastModifiedDate(Long lastModifiedDate) {
		this.lastModifiedDate = lastModifiedDate;
	}



	public String getUrl() {
		return url;
	}



	public void setUrl(String url) {
		this.url = url;
	}



	public String getHtml() {
		return html;
	}



	public void setHtml(String html) {
		this.html = html;
	}





}
